/* eslint-disable no-param-reassign */
import axios from 'axios';

const proxyurl = 'https://cors-anywhere.herokuapp.com/';
const url = 'https://api.asilu.com/'; // site that doesn’t send Access-Control-*
const request = axios.create({
  baseURL: proxyurl + url,
});

request.interceptors.response.use((res) => Promise.resolve(res));

export default request;
